More fixes in tpo teardown; don't double destruct waypoint.
authorrobertlipe <robertlipe@gmail.com>
Sun, 10 Feb 2013 03:37:05 +0000 (03:37 +0000)
committerrobertlipe <robertlipe@gmail.com>
Sun, 10 Feb 2013 03:37:05 +0000 (03:37 +0000)
gpsbabel/tpo.cc

index 36e87d8dde7c8cb5463a840c28ac0d326cfe906f..58cacdae966c556b84ee709ab3f07a0f18feea8f 100644 (file)
@@ -1354,12 +1354,6 @@ void tpo_process_routes(void)
 
   // Free the waypoint index, we don't need it anymore.
   for (ii = 0; ii < tpo_index_ptr; ii++) {
-    if (tpo_wp_index[ii]->shortname) {
-      xfree(tpo_wp_index[ii]->shortname);
-    }
-    if (tpo_wp_index[ii]->description) {
-      xfree(tpo_wp_index[ii]->description);
-    }
     waypt_free(tpo_wp_index[ii]);
   }